package com.example.delish.ui.recipes.viewmodel

import androidx.lifecycle.ViewModel
import com.example.delish.model.CuisineItem
import com.example.delish.model.IngredientItem
import com.example.delish.model.RecipesItem
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import javax.inject.Inject

@HiltViewModel
class RecipesViewModel @Inject constructor(): ViewModel() {

    private val _state = MutableStateFlow(RecipesViewState())
    val viewState: StateFlow<RecipesViewState>
        get() = _state


    data class RecipesViewState(
        val ingredientList: List<IngredientItem> = emptyList(),
        val cuisinesList: List<CuisineItem> = emptyList(),
        val randomRecipes: List<RecipesItem> = emptyList()
    )
}